package cn.sccl.dirms.topo.discovery.model;

import cn.sccl.dirms.topo.snmp.mib.Dot1dQTpFdbEntry;

import java.io.Serializable;

/**
 * Created by julei on 2017/9/14.
 */
public class BridgeMacDev implements Serializable {
    private DeviceInfo deviceInfo;
    private String mac;
    private int port;
    private Dot1dQTpFdbEntry entry;

    public DeviceInfo getDeviceInfo() {
        return deviceInfo;
    }

    public void setDeviceInfo(DeviceInfo deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public Dot1dQTpFdbEntry getEntry() {
        return entry;
    }

    public void setEntry(Dot1dQTpFdbEntry entry) {
        this.entry = entry;
    }

    @Override
    public boolean equals(Object obj) {
        BridgeMacDev other = (BridgeMacDev)obj;
        if(other.getMac().equals(mac)&&other.getPort()==port){
            return true;
        }else{
            return false;
        }
    }
}
